Conversation
…8483) The Zero backup-monitor polls Litestream's `/metrics` endpoint to determine the safe replication watermark for changelog pruning. Without a configured `addr`, Litestream never serves its metrics endpoint, so the backup-monitor can't reach it (`ECONNREFUSED` on `localhost:4850`). This means the changelog table never gets pruned — it grew to 6.7GB (75% of the DB) in 6 days. This adds `addr: localhost:4850` to the Litestream config so it serves metrics on the port Zero expects (default port 4848 + 2). ### Change type - [x] `bugfix` ### Test plan 1. Deploy to staging 2. Verify `curl localhost:4850/metrics` returns litestream metrics from inside the RM container 3. Monitor changelog table size — should start decreasing as backup-monitor triggers cleanup ### Release notes - Fix Zero changelog table growing unbounded by enabling Litestream metrics endpoint for backup-monitor. ### Code changes | Section | LOC change | | ------- | ---------- | | Apps | +1 / -0 |
Disables Zero deployment on production branch while we resolve WAL accumulation and replication slot invalidation issues. The Zero replication slot was consuming 4GB WAL (hitting `max_slot_wal_keep_size` limit) and getting invalidated, causing cascading issues including Supabase restarts and sync-worker slot invalidation. Staging (`main` branch) continues to deploy Zero normally. ### Change type - [x] `bugfix` ### Test plan 1. Merge to `main` — staging deploy should still deploy Zero (`flyio-multinode`) 2. Merge to `production` — should skip Zero deployment entirely ### Code changes | Section | LOC change | | -------------- | ---------- | | Config/tooling | +1 / -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )